﻿Public Class ExportItemDetailsBUS
    Private exportitemdetailsdao As New ExportItemDetailsDAO
    Public Function ExportItemDetails_Insert(ByVal ExportItemID As Integer, _
                                             ByVal ImportItemID As Integer, _
                                             ByVal ItemID As Integer, _
                                             ByVal Quantity As Integer, _
                                             ByVal BuyPrice As Decimal, _
                                             ByVal SellPrice As Decimal, _
                                             ByVal ExportItemDetailID As Integer) As Integer
        Return exportitemdetailsdao.ExportItemDetails_Insert(ExportItemID, ImportItemID, ItemID, Quantity, BuyPrice, SellPrice, ExportItemDetailID)
    End Function

    Public Function ExportItemDetails_Update(ByVal ExportItemDetailID As Integer, _
                                             ByVal ExportItemID As Integer, _
                                             ByVal ImportItemID As Integer, _
                                             ByVal ItemID As Integer, _
                                             ByVal OriginalQuantity As Integer, _
                                             ByVal Quantity As Integer, _
                                             ByVal SellPrice As Decimal) As Boolean
        Return exportitemdetailsdao.ExportItemDetails_Update(ExportItemDetailID, ExportItemID, ImportItemID, ItemID, OriginalQuantity, Quantity, SellPrice)
    End Function

    Public Function ExportItemDetails_Thue_Delete(ByVal ExportItemID As Integer) As Boolean
        Return exportitemdetailsdao.ExportItemDetails_Thue_Delete(ExportItemID)
    End Function


End Class
